import React, { Component } from 'react'
import Notifaction from '@/components/Notifaction'
export default class Home extends Component {
  constructor(){
    super()
    this.state={
        visibale:false
    }
  }
  render() {
    return (
      <div>
        <button onClick={()=>this.setState({visibale:true})}>打开通知框</button>
        {this.state.visibale&&<Notifaction
            closeNotify={arg=>{
               this.setState({visibale:arg})
            }}
            position="rightTop"
            title="Notification Title" 
            content="I will never close automatically. This is a purposely very very long description that has many many characters and words."></Notifaction>}
      </div>
    )
  }
}
